__author__ = 'mars'
import struct
a = 'a'
b = struct.pack('s',a)
print b

a='hello'

b='ftp://ftp1:ftp1@180.169.121.50'

c=2

d=45.123



bytes=struct.pack('30s',b)

print bytes